package com.distributed.kv.dto;

/**
 * KV响应对象
 */
public class KvResponse {

    private String key;
    private Long id;
    private String value;
    private boolean existed; // 是否已存在
    private Long accessCount;
    private String createdAt;
    private String updatedAt;

    public KvResponse() {
    }

    public KvResponse(String key, Long id, String value, boolean existed) {
        this.key = key;
        this.id = id;
        this.value = value;
        this.existed = existed;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public boolean isExisted() {
        return existed;
    }

    public void setExisted(boolean existed) {
        this.existed = existed;
    }

    public Long getAccessCount() {
        return accessCount;
    }

    public void setAccessCount(Long accessCount) {
        this.accessCount = accessCount;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }
}
